﻿#include <iostream>
#include "caishu.h"
using namespace std;

int max_no = 9;

int main() {
	initialize();
	cout << "猜数字游戏开始！\n";

	do {
		gen_no();
		int panduan;
		do {
			panduan = judge(input());
			if (panduan == 1) {
				cout << "\a再小一点\n";
			}
			else if (panduan == 2) {
				cout << "\a再大一点\n";
			}
		} while (panduan != 0);
		cout << "答案正确\n";
	} while (confirm_retry());
}